import Vue from 'vue';
import yaBasicList from './components/ya-list';
import VueSlider from 'vue-slider-component';
import 'vue-slider-component/theme/default.css';

Vue.prototype.$makeMap = function ( str,  expectsLowerCase ) {
  let map = Object.create(null);
  let list = str.split(',');
  for (let i = 0; i < list.length; i++) {
    map[list[i]] = true;
  }
  return expectsLowerCase ?
    function(val) { return map[val.toLowerCase()]; } :
    function(val) { return map[val]; }
},

Vue.component('VueSlider', VueSlider);
Vue.component('yaBasicList', yaBasicList);
